@-webkit-keyframes flash {
  0%, 50%, 100% {
    opacity: 1;
  }

  25%, 75% {
    opacity: 0.2;
  }
}

@keyframes flash {
  0%, 50%, 100% {
    opacity: 1;
  }

  25%, 75% {
    opacity: 0.2;
  }
}

.warn {
  -webkit-animation-duration: 5s;
  animation-duration: 5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

.river-net {
  width: 100%;
  height: 100%;
  min-height: 1000px;
  background: #333;
  font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serf;
}

.river-net text {
  font-weight: 300;
  font-size: 14px;
}

.river-net .node rect {
  stroke-width: 1px;
  stroke: #bbb;
  fill: #666;
}

.river-net .node.tunnel rect{
  fill: #888;
}

.river-net .status {
  height: 40px;
  width: 15px;
  display: block;
  float: left;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-right: 4px;
}

.river-net .services .status {
  border-bottom-left-radius: 0px;
}

.river-net .services .status {
  /* height: 200px; */
}

.river-net .running .status {
  background-color: #7f7;
}

.river-net .running.warn .status {
  background-color: #ffed68;
}

.river-net .stopped .status {
  background-color: #f77;
}

.river-net .warn .meter {
  color: #f77;
}

.warn {
  -webkit-animation-name: flash;
  animation-name: flash;
}

.river-net .consumers {
  margin-right: 2px;
}

.river-net .consumers,
.river-net .name {
  margin-top: 4px;
} 

.river-net .consumers:after {
  content: "x";
}

.river-net .name, .river-net .meter {
  display: block;
  min-width: 100px;
  height: 20px;
  font-size: 12px;
  margin-top: 2px;
}

.river-net .services .node-header {
  border-bottom: #fff solid 1px;
}

.river-net .service-list {
  display: block;
  margin-right: 5px;
}

.river-net .node g div {
  color: #fff;
}

.river-net .node g div span.name {
  display: inline-block;
  width: 20px;
}

.river-net .edgeLabel rect {
  fill: none;
}

.river-net .edgeLabel tspan {
  fill: #fff;

}

.river-net .edgeLabel div {
  width: 100px;
  color: #eee;
}

.river-net .edgePath path {
  stroke: #999;
  stroke-width: 1.5px;
  fill: none;
}

/* Override path marker color */
#arrowhead {
  fill: #999 !important;
}
